#include <stdio.h>

#define N 10

struct Student
{
    char name[20];
    char sex;
    int age;
};

int main()
{
    struct Student a[N]={
        {"caicaizi",'M',21},
        {"fengchu",'M',20},
        {"haohaozi",'M',19},
        {"xmx",'M',22},
        {"XiaoJinXin",'W',21},
        {"wukunze",'M',21},
        {"Max_De_Ren",'W',20},
        {"Tai_Shuai_Le",'M',20},
        {"Shi_Jie_Zhen_Hao",'M',20},
        {"Max_Best",'M',20},
    };
    char s[20];
    int i = 0,j = 0;
    scanf("%s",s);
    for(i = 0; i < N; i++)
    {
        for(j = 0; s[j] != '\0'; j++)
        {
            if(s[j] != a[i].name[j])    break;
        }
        if(s[j] == '\0')    break;
    }
    printf("%c %d",a[i].sex,a[i].age);

    return 0;
}
